package data;

import java.util.ArrayList;
import java.util.Date;


public class TaskList {
	private ArrayList<Task> tasklist;
	private ArrayList<Person> personList;
	private ArrayList<Project> projectList;
	
	
	public TaskList() {
		super();
		this.tasklist = new ArrayList<Task>();
		this.personList = new ArrayList<Person>();
		this.projectList = new ArrayList<Project>();
	}

	public ArrayList<Task> getTaskList() {
		return tasklist;
	}
	public void setTasklist(ArrayList<Task> tasklist) {
		this.tasklist = tasklist;
	}
	public void clearTaskList() {
		tasklist.clear();
	}
	
	public void addTask (Task task) {
		tasklist.add(task);
	}
	public void removeTask(int i) {
		tasklist.remove(i);
	}
	public void removeTask(Task task) {
		tasklist.remove(task);
	}
	//
	public ArrayList<Person> getPersonList() {
		return personList;
	}
	
	public void addPerson (Person person) {
		personList.add(person);
	}
	
	public ArrayList<Project> getProjectList() {
		return projectList;
	}

	public void addProject (Project project) {
		projectList.add(project);
	}
	
}